<?php if (of_get_option('tabs_show') != false) { ?>
<?php
$tab1 = "tab1";
$tab2 = "tab2";
$tab3 = "tab3";
$tab4 = "tab4";
$tab5 = "tab5";
$tab6 = "tab6";
$tab7 = "tab7";
?>
<div class="nb_tabs_outer box_outer">
    <div class="news_boxes_tabs">
        <div class="custom_tabs_container">
            <ul class="custom_tabs">
            <?php if(of_get_option('tab1_title') != '') { ?>
                <li><a href="#"><?php echo of_get_option('tab1_title'); ?></a></li>
            <?php } ?>
            <?php if(of_get_option('tab2_title') != '') { ?>
                <li><a href="#"><?php echo of_get_option('tab2_title'); ?></a></li>
            <?php } ?>
            <?php if(of_get_option('tab3_title') != '') { ?>
                <li><a href="#"><?php echo of_get_option('tab3_title'); ?></a></li>
            <?php } ?>
            <?php if(of_get_option('tab4_title') != '') { ?>
                <li><a href="#"><?php echo of_get_option('tab4_title'); ?></a></li>
            <?php } ?>
            <?php if(of_get_option('tab5_title') != '') { ?>
                <li><a href="#"><?php echo of_get_option('tab5_title'); ?></a></li>
            <?php } ?>
            <?php if(of_get_option('tab6_title') != '') { ?>
                <li><a href="#"><?php echo of_get_option('tab6_title'); ?></a></li>
            <?php } ?>
            <?php if(of_get_option('tab7_title') != '') { ?>
                <li><a href="#"><?php echo of_get_option('tab7_title'); ?></a></li>
            <?php } ?>
            </ul>
            <div class="custom_tabs_wrap">
            <?php if(of_get_option('tab1_title') != '') { ?>
                <div class="custom_tabs_content">
                    <?php mom_news_tab($tab1); ?>
                </div>
            <?php } ?>

            <?php if(of_get_option('tab2_title') != '') { ?>
                <div class="custom_tabs_content">
                    <?php mom_news_tab($tab2); ?>
                </div>
            <?php } ?>

            <?php if(of_get_option('tab3_title') != '') { ?>
                <div class="custom_tabs_content">
                    <?php mom_news_tab($tab3); ?>
                </div>
            <?php } ?>

            <?php if(of_get_option('tab4_title') != '') { ?>
                <div class="custom_tabs_content">
                    <?php mom_news_tab($tab4); ?>
                </div>
            <?php } ?>

            <?php if(of_get_option('tab5_title') != '') { ?>
                <div class="custom_tabs_content">
                    <?php mom_news_tab($tab5); ?>
                </div>
            <?php } ?>

            <?php if(of_get_option('tab6_title') != '') { ?>
                <div class="custom_tabs_content">
                    <?php mom_news_tab($tab6); ?>
                </div>
            <?php } ?>

            <?php if(of_get_option('tab7_title') != '') { ?>
                <div class="custom_tabs_content">
                    <?php mom_news_tab($tab7); ?>
                </div>
            <?php } ?>

            </div> <!--Tab Wrap-->
        </div> <!--Tab Container-->
    </div> <!--End Nb Tabs-->
    </div> <!--Nt tabs Outer-->
    <?php } ?>